<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>{$tkd.title|parseTpl}</title>
    <meta name="keywords" content="{$tkd.keywords|parseTpl}">
    <meta name="description" content="{$tkd.description|parseTpl}">
    <link rel="stylesheet" type="text/css" href="{$kx.config.resurl}/template/kxmobileno2/css/ptm.min.css" />
    <link rel="stylesheet" type="text/css" href="{$kx.config.resurl}/template/kxmobileno2/css/skin.min.css" />
    <link rel="stylesheet" type="text/css" href="{$kx.config.resurl}/template/kxmobileno2/css/font-awesome.min.css" />
</head>
<body>
<header class="ptm-bar ptm-bar-nav  ptm-fix">
    <a class="ptm-pull-left" href="javascript:window.history.back()">
        <span class="ptm-iconfont ptm-icon-left"></span>
    </a>
    <div class="ptm-title">搜索结果</div>
    <a class="ptm-pull-right" href="{$kx.config.mobileurl}">
        <span class="ptm-iconfont fa fa-home" style="font-size:22px;"></span>
    </a>
</header>
<section class="ptm-content pt-infopage" style="margin-top:60px;background: #fff">
    {block method="search" name=$resultlist searchkey=$searchkey page=$page num=$pagesize}
    {if $resultlist.count}
    <div class="baseinfo">
        <img src="{$resultlist.items.0.novel.cover}" alt="{$resultlist.items.0.novel.name}">
        <div class="pt-novel">
            <h1 class="pt-name"><a href="{link=novel.novel.index novelid=$resultlist.items.0.novel.id pinyin=$resultlist.items.0.novel.pinyin}">{$resultlist.items.0.novel.name}</a></h1>
            <div class="pt-info">作者:{$resultlist.items.0.author.name}</div>
            <div class="pt-info">分类:<a href="{link=novel.category.list categoryid=$resultlist.items.0.category.id key=$resultlist.items.0.category.key}">{$resultlist.items.0.category.name}</a></div>
            <div class="pt-info">状态:{$resultlist.items.0.novel.is_over|default="连载中","已完结"}</div>
            <div class="pt-info">更新:{$resultlist.items.0.last.time|cntime}</div>
        </div>
    </div>
    <div class="twobutton ptm-clearfix">
        <div class="ptm-col-xs-6">
            <a class="ptm-btn ptm-btn-primary ptm-btn-block" href="{link=novel.chapter.read novelid=$resultlist.items.0.novel.id pinyin=$resultlist.items.0.novel.pinyin chapterid=1}">开始阅读</a>
        </div>
        <div class="ptm-col-xs-6">
            <a class="ptm-btn ptm-btn-warning ptm-btn-block" href="{link=novel.mark.add novelid=$resultlist.items.0.novel.id}">加入书架</a>
        </div>
    </div>
    <div class="lastchapter">
        <a href="{link=novel.chapter.read novelid=$resultlist.items.0.novel.id pinyin=$resultlist.items.0.novel.pinyin chapterid=$resultlist.items.0.last.id}" class="ptm-text-cut">{$resultlist.items.0.last.name}</a>
    </div>
    <div class="twobutton" >
        <a class="ptm-btn ptm-btn-primary ptm-btn-block ptm-btn-outlined" href="{link=novel.novel.dir novelid=$resultlist.items.0.novel.id pinyin=$resultlist.items.0.novel.pinyin}">全部目录</a>
    </div>
    <div class="ptm-line-x" style="margin:10px 0;"></div>
    <ul class="pt-card pt-card-2">
        {section loop=resultlist.items offset=1}
        {if $i.order>1}
        <li>
            <div class="pt-cover">
                <a href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}" title="{$loop.novel.name}"><img src="{$loop.novel.cover}" alt="{$loop.novel.name}"></a>
            </div>
            <div class="pt-novel">
                <div class="pt-num ptm-pull-right"></div>
                <div class="pt-name"><a href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}" title="{$loop.novel.name}">{$loop.novel.name}</a></div>
                <div class="pt-info">{$loop.author.name}&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{link=novel.category.list categoryid=$loop.category.id key=$loop.category.key}">{$loop.category.name}</a>&nbsp;&nbsp;|&nbsp;&nbsp;{$loop.novel.is_over|default="连载","完结"}</div>
                <div class="pt-desc ptm-text-cut2">{$loop.novel.intro}</div>
            </div>
        </li>
        {/if}
        {/section}
    </ul>
    {else}
    没搜到你要查找的内容,换个关键词试试吧!
    {/if}
</section>
{include file="/system/footer"}
</body>
</html>